/**execl*/
#define _GNU_SOURCE

#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>

extern char **environ;
int main(void)
{
	
	//execl("/bin/ls","ls","-a","-l",NULL);
	//execlp("ls","ls","-a","-l",NULL);
	//execle("/bin/ls","ls","-a","-l",NULL,environ);

	char *argv[]={"ls","-l","-a",NULL};
	//execv("/bin/ls",argv);
	//execvp("ls",argv);
	execvpe("ls",argv,environ);



	perror("execl error");
	exit(-1);
}
